//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package test.StringPractise;

import java.util.Scanner;

public class StringPractiseThree {
    public StringPractiseThree() {
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = reverse(sc.nextLine());
        System.out.println(str);
    }

    public static String reverse(String str) {
        String newStr = "";

        for(int i = str.length() - 1; i >= 0; --i) {
            newStr = newStr + str.charAt(i);
        }

        return newStr;
    }
}
